# -*- coding: utf-8 -*-
# @Time    : 2022/7/15 22:17
# @Author  : catherine
# @Email   : catherine_csq@163.com
# @File    : base_page.py
# @Software: PyCharm
class BasePage():
    '''页面基类'''
    def __init__(self,driver):
        self.driver=driver

    def open(self):
        '''打开页面'''
        self.driver.get(self.url)

    def current_url(self):
        '''获取当前界面url'''
        return self.driver.current_url

    def find_element(self, locator):
        '''封装查找元素方法'''
        return self.driver.find_element(*locator)